<?php
include ("Connect.php");
function Postcode($postcodes)
{
	//mysql_select_db("cabee") or die(mysql_error());
$arrayTampp = array();
// Retrieve all the data from the "example" table
$result = mysql_query("SELECT postcode FROM caboffice_addresses",$con)
or die(mysql_error());  
$tamp =0;
	for ($i = 0; $i <sizeof($postcodes); $i++) 
	{
		while($row = mysql_fetch_array($result))
		{
			if($postcodes[$i]==$row['postcode'])
			{
				$arrayTampp[$tamp]=$postcodes[$i];
				$tamp++;
			}
		}
	}
	closeA($con);
}
//funtion close
function closeA($con){

mysql_close($con);	
}
?>